package br.biofoco.p2p.rpc.messaging;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class WireRequestMessage extends WireMessage {

	private static final long serialVersionUID = -3806140403713908002L;
	private String type = "REQUEST";
	private List<String> params = new ArrayList<String>();
	
	public WireRequestMessage() {}
	
	public WireRequestMessage(int id, String method, String... param) {
		super(id,method);
		this.params = Arrays.asList(param);
	}



	public void setParams(List<String> params) {
		this.params = params;
	}
	
	public List<String> getParams() {
		return params;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

}
